package models;

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import services.SongReader;

public class SongCollection {
	private ArrayList<Song> mySongs;

	public SongCollection() {
		mySongs = new ArrayList<Song>();
	}

	@Override
	public String toString() {
		StringBuffer strbuf = new StringBuffer();
		for (Song s : mySongs) {
			strbuf.append(s.toString());
			strbuf.append("\n");
		}
		return strbuf.toString();
	}

	public void showCollection() {
		for (int i = 0; i < mySongs.size(); i++) {
			System.out.println(mySongs.get(i));
		}
		System.out.println("");
	}

	public ArrayList<Song> getMySongs() {
		return mySongs;
	}

	public void add(Song song) {
		mySongs.add(song);
	}
}
